package com.aispeech.jnitry;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.aispeech.jnilib.MyJni;

public class MainActivity extends AppCompatActivity {

    private TextView mTvShow;
    private Button mBtnJni;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        mTvShow = findViewById(R.id.tv_show);
        mBtnJni = findViewById(R.id.btn_jni);

        mBtnJni.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                mTvShow.setText("hello android jni test");
                mTvShow.append("\r\n sum_c = " + MyJni.sum_c(8,8));
            }
        });

    }
}
